package cevent.source.cloudcenter.template.util;/**
 * Created by Cevent on 2021/3/20.
 */

/**
 * @author cevent
 * @description field字段表获取table列，判断字段类型，驼峰命名
 * @date 2021/3/20 17:23
 */
public class FieldUtil {
    private String name; //字段名
    private String nameSmallHump; //小驼峰courseId
    private String nameBigHump; //大驼峰CourseId
    private String nameCN; //中文名-注释
    private String type; //字段类型:char(1)/varchar(1) 转string
    private String javaType; //java类型 转string
    private String comment; //注释 中文名nameCN | ID
    private Boolean nullAble; //是否为空：校验
    private Integer length; //字符串长度：校验
    private Boolean Enums; //是否为枚举：校验，DButil判断，是枚举，添加常量
    private String enumsConst; //是否为枚举常量ENUMS_CONST

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNameSmallHump() {
        return nameSmallHump;
    }

    public void setNameSmallHump(String nameSmallHump) {
        this.nameSmallHump = nameSmallHump;
    }

    public String getNameBigHump() {
        return nameBigHump;
    }

    public void setNameBigHump(String nameBigHump) {
        this.nameBigHump = nameBigHump;
    }

    public String getNameCN() {
        return nameCN;
    }

    public void setNameCN(String nameCN) {
        this.nameCN = nameCN;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getJavaType() {
        return javaType;
    }

    public void setJavaType(String javaType) {
        this.javaType = javaType;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Boolean getNullAble() {
        return nullAble;
    }

    public void setNullAble(Boolean nullAble) {
        this.nullAble = nullAble;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Boolean getEnums() {
        return Enums;
    }

    public void setEnums(Boolean enums) {
        Enums = enums;
    }

    public String getEnumsConst() {
        return enumsConst;
    }

    public void setEnumsConst(String enumsConst) {
        this.enumsConst = enumsConst;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("FieldUtil{");
        sb.append("name='").append(name).append('\'');
        sb.append(", nameSmallHump='").append(nameSmallHump).append('\'');
        sb.append(", nameBigHump='").append(nameBigHump).append('\'');
        sb.append(", nameCN='").append(nameCN).append('\'');
        sb.append(", type='").append(type).append('\'');
        sb.append(", javaType='").append(javaType).append('\'');
        sb.append(", comment='").append(comment).append('\'');
        sb.append(", nullAble=").append(nullAble);
        sb.append(", length=").append(length);
        sb.append(", Enums=").append(Enums);
        sb.append(", enumsConst='").append(enumsConst).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
